<template>
    <div class="top">
       <i class="iconfont icon-zuotiaozhuan" @click="back"></i>
       <slot></slot>
    </div>
</template>
<script>
export default {
    methods: {
        back(){
            this.$router.go(-1)
        }
    },
}
</script>
<style lang="less">
.top{
    background: #2a2a2a;
    height: 56px;
    line-height: 56px;
    text-align: center;
    color: #fff;
    .icon-zuotiaozhuan{
        position: absolute;
        left:15px;
    }
}
</style>